FROM alpine
LABEL maintainer="陈新亮<chenxinliang@bit.edu.cn>"

RUN apk add --update --no-cache openldap openldap-clients openldap-backend-all openldap-overlay-all openldap-openrc openldap-passwd-argon2 openldap-passwd-pbkdf2  openldap-passwd-sha2 openldap-dev  openldap-doc phpldapadmin dnsmasq
COPY ./install.sh /srv/
RUN chmod +xr /srv/install.sh 

ENV IMAGE_NAME=openldap
ENV LDAP_LOG_LEVEL=64
ENV LDAP_DOMAIN=domain
ENV LDAP_SUBDOMAIN=openldap
ENV LDAP_USER=ldap
ENV LDAP_GROUP=ldap
ENV LDAP_CONFIG_DIR="/etc/openldap/slapd.d"
ENV LDAP_URL="ldap:///"

